/**************************************************************************************************
 **
 ** Created: 07 November, 2014; Volodymyr Myroniuk;
 **
 ** Dialog for creating test scenario. Added scenario name and designer version to main window.
 **
 *************************************************************************************************/

#ifndef CREATESCENARIODIALOG_H
#define CREATESCENARIODIALOG_H

#include <QDialog>
#include "chipsinfo.h"

namespace Ui {
class CreateScenarioDialog;
}

class CreateScenarioDialog : public QDialog
{
    Q_OBJECT

public:
    CreateScenarioDialog(QWidget *parent = 0);
    ~CreateScenarioDialog();

signals:
    void scenarioCreated(const QString &scenarioName, ChipsInfo::Designer designer);

private:
    void installUi() const;
    void setIcons() const;

private slots:
    void on_okButton_clicked();
    void on_cancelButton_clicked();
    void okEnableReconcile() const;
    void setDesigner(int index);
    void setScenarioName(const QString &scenarioName);

private:
    ChipsInfo::Designer _designer;
    QString _scenarioName;
    Ui::CreateScenarioDialog *ui;
};

#endif // CREATESCENARIODIALOG_H
